
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&display=swap');

:root {
  color-scheme: dark light;
  --bg-color: #0f1117;
  --text-color: #e5e5e5;
  --accent-color: #00ffe0;
  --card-bg: #1e1e2f;
  --nav-bg: #1a1d29;
  --form-bg: #1e1e2f;
  --footer-bg: #1a1d29;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-color: #ffffff;
    --text-color: #111;
    --accent-color: #0077ff;
    --card-bg: #f3f3f3;
    --nav-bg: #e9e9e9;
    --form-bg: #fefefe;
    --footer-bg: #e9e9e9;
  }
}

body.light-mode {
  --bg-color: #ffffff;
  --text-color: #111;
  --accent-color: #0077ff;
  --card-bg: #f3f3f3;
  --nav-bg: #e9e9e9;
  --form-bg: #fefefe;
  --footer-bg: #e9e9e9;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Fira Code', monospace;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s, color 0.3s;
}

header {
  background-color: var(--nav-bg);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent-color);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent-color);
}

.theme-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent-color);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Typewriter Effect */
.typewriter {
  overflow: hidden;
  border-right: 0.15em solid var(--accent-color);
  white-space: nowrap;
  margin: 0 auto;
  animation: typing 3s steps(30, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--accent-color); }
}

section {
  padding: 4rem 2rem;
  text-align: center;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

#home {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    flex-wrap: wrap;
    gap: 2rem;
    background: var(--card-bg);
    border-radius: 16px;
    margin: 2rem auto;
    max-width: 1100px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }
  
  .home-photo {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }
  
  .home-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: floatImage 4s ease-in-out infinite;
  }

  @keyframes floatImage {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
  }
  
  .home-bio {
    flex: 2;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    text-align: left;
  }
  
  .home-bio h1 {
    font-size: 2.2rem;
    color: var(--accent-color);
  }
  
  .home-bio .typewriter {
    font-size: 1.8rem;
    border-right: 0.15em solid var(--accent-color);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3s steps(30, end), blink-caret 0.75s step-end infinite;
  }
  
  .home-bio p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
  }
  
  .socials {
    margin-top: 1.5rem;
  }
  
  .socials a {
    color: #00ffcc;
    margin-right: 1rem;
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
  }
  
  .socials a:hover {
    transform: scale(1.2);
    color: #fff;
  }
  
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 1rem;
  }
  
  .skill-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
  }
  
  .skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  }
  
  .skill-card img {
    width: 50px;
    height: 50px;
    margin-bottom: 0.5rem;
  }
  
  .skill-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 600;
  }
  
.project iframe {
  width: 100%;
  max-width: 1200px;
  height: 600px;
  border: none;
  margin-top: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.contact-code-section {
    padding: 80px 20px;
    background: #0e0e0e;
    color: #00ffcc;
    font-family: 'Fira Code', monospace;
    text-align: center;
  }
  
  .code-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #00ffcc;
    border-radius: 15px;
    padding: 0;
    max-width: 700px;
    margin: 40px auto;
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.2);
    backdrop-filter: blur(10px);
    overflow: hidden;
  }
  
  .code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid #00ffcc30;
  }
  
  .circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
  }
  .red { background: #ff5f56; }
  .yellow { background: #ffbd2e; }
  .green { background: #27c93f; }
  .file-name {
    margin-left: auto;
    font-size: 0.85rem;
    color: #ccc;
    opacity: 0.7;
  }
  
  .code-content {
    padding: 20px;
    text-align: left;
  }
  
  .code-line {
    margin: 10px 0;
    white-space: pre;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .line-num {
    color: #888;
    width: 30px;
    text-align: right;
    user-select: none;
  }
  
  .key {
    color: #f92672;
    font-weight: bold;
    width: 80px;
    display: inline-block;
  }
  
  .code-line input,
  .code-line textarea {
    background: transparent;
    border: none;
    color: #00ffcc;
    font-family: inherit;
    font-size: 1rem;
    width: 60%;
    border-bottom: 1px dashed #00ffcc70;
    outline: none;
    resize: none;
  }
  
  .code-line textarea {
    height: 60px;
  }
  
  .send-btn {
    background: #00ffcc;
    color: #000;
    font-weight: bold;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    margin: 20px auto;
    display: block;
    font-family: inherit;
    transition: all 0.3s;
  }
  
  .send-btn:hover {
    box-shadow: 0 0 15px #00ffcc;
  }

footer {
  background-color: var(--footer-bg);
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-color);
}

.about-container {
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
  }
  
  .about-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    max-width: 1000px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    color: var(--text-color);
    text-align: left;
    animation: fadeInUp 1s ease forwards;
  }
  
  .about-glass h2 {
    color: var(--accent-color);
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }
  
  .terminal-text {
    font-family: 'Fira Code', monospace;
    background-color: rgba(0,0,0,0.6);
    padding: 1rem;
    border-left: 4px solid var(--accent-color);
    margin-bottom: 2rem;
    font-size: 1.1rem;
  }
  
  .terminal-text .highlight {
    color: var(--accent-color);
    font-weight: bold;
  }
  
  .about-columns {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .about-block {
    background: var(--card-bg);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.3s;
  }
  
  .about-block:hover {
    transform: translateY(-4px);
  }
  
  .about-block h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(40px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @media (min-width: 768px) {
    .about-columns {
      flex-direction: row;
    }
  }
  

.education-section {
  padding: 4rem 2rem;
  background-color: var(--bg-color);
  text-align: left;
  max-width: 1000px;
  margin: auto;
}

.section-title {
  color: var(--accent-color);
  font-size: 2.5rem;
  text-shadow: var(--accent-glow);
  margin-bottom: 2rem;
  text-align: center;
}

.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 3px dashed var(--accent-color);
}

.timeline-item {
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease forwards;
}

.terminal-entry {
  background-color: rgba(0,0,0,0.6);
  border-left: 4px solid var(--accent-color);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-family: 'Fira Code', monospace;
  box-shadow: 0 0 15px rgba(0, 255, 224, 0.2);
  position: relative;
  transition: transform 0.3s ease;
}

.terminal-entry:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(0, 255, 224, 0.4);
}

.terminal-prompt {
  color: var(--accent-color);
  font-weight: bold;
  margin-right: 0.5rem;
}

.typed {
  color: var(--text-color);
  font-size: 1.2rem;
  animation: type 3s steps(30, end) forwards;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid var(--accent-color);
}


@keyframes type {
  from { width: 0; }
  to { width: 100%; }
}

.details {
  margin-top: 0.5rem;
  padding-left: 1.5rem;
  color: var(--text-color);
  font-size: 0.95rem;
}

.details p {
  margin: 0.3rem 0;
}

@media (max-width: 768px) {
  .timeline {
    padding-left: 1rem;
  }

  .typed {
    font-size: 1rem;
  }
}

.edu-narration {
    margin-top: 2rem;
    text-align: center;
  }
  
  .edu-narration button {
    padding: 0.6rem 1.4rem;
    border: none;
    border-radius: 8px;
    background-color: var(--accent-color);
    color: var(--bg-color);
    cursor: pointer;
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 0 12px rgba(0, 255, 224, 0.4);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
  }
  
  .edu-narration button:hover {
    transform: scale(1.05);
    background-color: #00ccb5;
    box-shadow: 0 0 18px rgba(0, 255, 224, 0.6);
  }

  .edu-narration select {
    padding: 8px 10px;
    font-size: 1rem;
    border-radius: 8px;
    border: none;
    margin-left: 10px;
    cursor: pointer;
    background-color: #222;
    color: #fff;
  }
  .edu-narration select option {
    background: #111;
  }
 
  #github {
    padding: 50px 20px;
    background: var(--bg-color);
    color: var(--text-color);
    text-align: center;
  }
  
  .repo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
  }
  
  .repo-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    text-align: left;
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
  }
  
  .repo-card:hover {
    transform: translateY(-5px);
  }
  
  .repo-card h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: var(--accent-color);
  }
  
  .repo-card p {
    font-size: 0.95rem;
    line-height: 1.4;
  }
  
  .repo-card a {
    display: inline-block;
    margin-top: 10px;
    color: var(--link-color);
    font-weight: bold;
  }

